/**
 * Author: runlin.tang
 * Creation Time: 2016-06-29.
 * Description:
 *             arg1 0路由 1充电宝 device
 *             arg2 0未绑定 1已绑定 statue
 */
define(['jquery','underscore','backbone','../m/routing','../v/chongDian','../../../common/js/lib/text!../../../tpl/checkToNet.tpl','./jiema'],
    function ($,_,Backbone,routing,chongDian,checkToNet,jiema) {
    function indexC(arg1,arg2,arg3,arg4,arg5,arg6,arg7){
        //$('.webApp-content').html(_.template(checkToNet)());
        var urls = jiema(arg4);
        shopName = arg3;
        serUrl = urls;
        tokens = arg5;
        DeviceID = arg6;
        DeviceType = arg7;
        if(arg2 == 1){
            //�� 1-已绑定�����
            location.href = '#admin';
        }else{
            //  0路由 1充电宝 device���
            if(arg1 == 0){
                hostUrl = 'http://192.168.88.254';
                //hostUrl = 'localhost:8089';
                routing();
            }else{
                //�充电宝��
                hostUrl = 'http://10.0.0.1';
                chongDian();
            }

        }
    }
    return indexC;
});
